#ifndef _MAINSERVER_H
#define _MAINSERVER_H
#include"tcpServer.h"
#include"threadPool.h"
#include"reactor.h"
#include"ipAddressPort.h"
class MainServer{
public:
   MainServer();
   ~MainServer();
   static void ListenEventCallBack(int fd,short events,void * arg);
   void start();
   void SetThreadNum(int threadNum);
   void SetIpAddressPort(IpAddressPort ipAddressPort);
   
   
private:
   TcpServer * m_server;
   ThreadPool * m_Pool;
   Reactor * m_reacotr;
   int m_threadNum;
   IpAddressPort m_ipAddressPort;

};
#endif